import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
//会员分享话题列表分页查询
export const findMemberSubjectListPage = query => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/findMemberSubjectListPage',
        method: 'get',
		params: query,
    });
};
//会员分享话题详情查询
export const findMemberSubjectInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/findMemberSubjectInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增会员分享话题
export const addMemberSubject = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/saveMemberSubject',
        method: 'post',
		data: data,
    });
};
// 编辑会员分享话题
export const saveMemberSubject = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/saveMemberSubject',
        method: 'put',
		data: data,
    });
};
// 删除会员分享话题
export const deleteMemberSubjectById = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/deleteMemberSubjectById/'+data,
        method: 'delete',
    });
};
// 批量删除会员分享话题
export const batchDeleteMemberSubject = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/deleteMemberSubject',
        method: 'delete',
        data: data
    });
};
// 会员分享话题留言
export const reBackMemberSubject = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/reBackMemberSubject',
        method: 'put',
        data: data
    });
};
// 删除会员分享话题留言
export const delMemberSubjectCommon = data => {
    return request({
        url: baseRequest_url+'/admin/memberSubject/delMemberSubjectCommon',
        method: 'delete',
        data: data
    });
};

